<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
	String path = request.getContextPath();
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">
    <title>民宿预定系统</title>
    <!-- global stylesheets -->
    <link rel="stylesheet" href="<%=path %>/admin/image/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=path %>/admin/image/css/font-awesome.min.css">
    <link rel="stylesheet" href="<%=path %>/admin/image/css/font-icon-style.css">
    <link rel="stylesheet" href="<%=path %>/admin/image/css/style.default.css">
    <!-- Core stylesheets -->
    <link rel="stylesheet" href="<%=path %>/admin/image/css/form.css">
    <script type="text/javascript">



        function setIframeHeight(iframe) {
            if (iframe) {
                var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
                if (iframeWin.document.body) {
                    iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
                }
            }
        };

        window.onload = function () {
            setIframeHeight(document.getElementById('main2'));
        };
    </script>
  </head>

  <body>

   <%

		String lname=(String) session.getAttribute("adminLname");
		String role=(String) session.getAttribute("role");
  if(lname==null){ %>
<script type="text/javascript" language="javascript">
		alert("您还没有登录，请登录...");
		window.document.location.href="<%=path %>/login.jsp";
	</script>
  <% return;} %>
<header class="header">
        <nav class="navbar navbar-expand-lg ">

            <div class="container-fluid ">
                <div class="navbar-holder d-flex align-items-center justify-content-between">
                    <div class="navbar-header">
                        <a href="<%=path %>/admin/admin/index.jsp" class="navbar-brand">
                              民宿预定系统
                        </a>
                        <a id="toggle-btn" href="#" class="menu-btn active">
                            <span></span>
                            <span></span>
                            <span></span>
                        </a>
                    </div>
                </div>

                <ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center">
                    <!-- Expand-->
                    <li class="nav-item d-flex align-items-center full_scr_exp"><a class="nav-link" href="#"><img src="<%=path %>/admin/image/expand.png" onclick="toggleFullScreen(document.body)" class="img-fluid" alt=""></a></li>

                    <li class="nav-item dropdown"><a id="profile" class="nav-link logout" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="<%=path %>/admin/image/avatar-1.jpg" alt="..." class="img-fluid rounded-circle" style="height: 30px; width: 30px;"></a>
                        <ul aria-labelledby="profile" class="dropdown-menu profile" style="display: none;">
                            <li>
                                <a rel="nofollow" href="#" class="dropdown-item d-flex">
                                    <div class="msg-profile"> <img src="<%=path %>/admin/image/avatar-1.jpg" alt="..." class="img-fluid rounded-circle"></div>
                                    <div class="msg-body">
                                        <h3 class="h5"><%= role%></h3><span><%= lname%></span>
                                    </div>
                                </a>
                                <hr>
                            </li>


                         <%--   <li>
                                <a rel="nofollow" href="<%=path %>/qiantai/default.jsp" target="_blank" class="dropdown-item">
                                    <div class="notification">
                                        <div class="notification-content"><i class="fa fa-home "></i>网站首页</div>
                                    </div>
                                </a>
                            </li>--%>

                            <li>
                                <a rel="nofollow" href="<%=path %>/admin/admin/pass.jsp" target="main" class="dropdown-item">
                                    <div class="notification">
                                        <div class="notification-content"><i class="fa fa-lock "></i>修改密码</div>
                                    </div>
                                </a>
                            </li>


                            <li>
                                <a rel="nofollow" href="<%=path %>/login.jsp" class="dropdown-item">
                                    <div class="notification">
                                        <div class="notification-content"><i class="fa fa-power-off"></i>退出登录</div>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </li>


                </ul>




            </div>
        </nav>
    </header>

	<div class="page-content d-flex align-items-stretch">
        <!--***** SIDE NAVBAR *****-->
        <nav class="side-navbar">

            <!-- Sidebar Navidation Menus-->
            <ul class="list-unstyled">


				<% if (role.equals("超级管理员")) {%>
				<li class="active">
					<a href="#forms0" aria-expanded="false" data-toggle="collapse">
						<i class="fa fa-navicon">
						</i>
						管理员管理
					</a>
					<ul id="forms0" class="collapse list-unstyled">
						<li>
							<a href="<%=path %>/admin/admin/admin_Add.jsp" target="main">
								<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>添加管理员
							</a>
						</li>
						<li>
							<a href="<%=path %>/admin/admin/admin_Manage.jsp" target="main">
								<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理管理员
							</a>
						</li>
					</ul>
				</li>
				<%}%>


				<li class="active">
					<a href="#forms2" aria-expanded="false" data-toggle="collapse">
						<i class="fa fa-navicon">
						</i>
						客户管理
					</a>
					<ul id="forms2" class="collapse list-unstyled">

						<li>
							<a href="<%=path %>/admin/members/members_Manage.jsp" target="main">
								<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理客户
							</a>
						</li>
					</ul>
				</li>




				<li class="active">
	<a href="#forms1" aria-expanded="false" data-toggle="collapse">
		<i class="fa fa-navicon">
		</i>
		优惠券管理
	</a>
	<ul id="forms1" class="collapse list-unstyled">
		<li>
			<a href="<%=path %>/admin/coupon/coupon_Add.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>添加优惠券
			</a>
		</li>
		<li>
			<a href="<%=path %>/admin/coupon/coupon_Manage.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理优惠券
			</a>
		</li>
	</ul>
</li>






<li class="active">
	<a href="#forms4" aria-expanded="false" data-toggle="collapse">
		<i class="fa fa-navicon">
		</i>
		房型管理
	</a>
	<ul id="forms4" class="collapse list-unstyled">
		<li>
			<a href="<%=path %>/admin/roomtype/roomtype_Add.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>添加房型
			</a>
		</li>
		<li>
			<a href="<%=path %>/admin/roomtype/roomtype_Manage.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理房型
			</a>
		</li>
	</ul>
</li>








<li class="active">
	<a href="#forms7" aria-expanded="false" data-toggle="collapse">
		<i class="fa fa-navicon">
		</i>
		订单管理
	</a>
	<ul id="forms7" class="collapse list-unstyled">
		<li>
			<a href="<%=path %>/admin/orders/orders_Manage2.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>待支付订单
			</a>
		</li>
		<li>
			<a href="<%=path %>/admin/orders/orders_Manage3.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>已支付订单
			</a>
		</li>
		<li>
			<a href="<%=path %>/admin/orders/orders_Manage.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>历史订单
			</a>
		</li>

	</ul>
</li>




<li class="active">
	<a href="#forms9" aria-expanded="false" data-toggle="collapse">
		<i class="fa fa-navicon">
		</i>
		评价管理
	</a>
	<ul id="forms9" class="collapse list-unstyled">

		<li>
			<a href="<%=path %>/admin/assesss/assesss_Manage.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理评价
			</a>
		</li>
	</ul>
</li>

				<li class="active">
					<a href="#forms5" aria-expanded="false" data-toggle="collapse">
						<i class="fa fa-navicon">
						</i>
						意见反馈管理
					</a>
					<ul id="forms5" class="collapse list-unstyled">

						<li>
							<a href="<%=path %>/admin/board/board_Manage.jsp" target="main">
								<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>管理意见反馈
							</a>
						</li>
					</ul>
				</li>

<li class="active">
	<a href="#forms11" aria-expanded="false" data-toggle="collapse">
		<i class="fa fa-navicon">
		</i>
		系统管理
	</a>
	<ul id="forms11" class="collapse list-unstyled">
		<li>
			<a href="<%=path %>/admin/admin/pass.jsp" target="main">
				<i class="fa  fa-hand-o-right" style=" font-size: 14px; margin-right: 0px; width: 20px; "></i>修改密码
			</a>
		</li>
	</ul>
</li>



            </ul>



        </nav>
        <div class="content-inner form-cont">
            <div class="row">
                <div class="col-md-12">
                    <iframe id="main2" name="main" src="<%=path %>/admin/right.jsp" style="border: 0px; width: 100%; " onload="setIframeHeight(this)" height="560"></iframe>
                </div>
            </div>
        </div>
    </div>



	<script src="<%=path %>/admin/image/js/jquery.min.js"></script>
    <script src="<%=path %>/admin/image/js/popper.min.js"></script>
    <script src="<%=path %>/admin/image/js/tether.min.js"></script>
    <script src="<%=path %>/admin/image/js/bootstrap.min.js"></script>
    <script src="<%=path %>/admin/image/js/jquery.cookie.js"></script>
    <script src="<%=path %>/admin/image/js/jquery.validate.min.js"></script>
    <script src="<%=path %>/admin/image/js/chart.min.js"></script>
    <script src="<%=path %>/admin/image/js/front.js"></script>


  </body>
</html>

